package com.example.mykotlin

import android.app.Activity
import android.content.Intent
import android.os.Bundle
import android.view.View

class Main2Activity : Activity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main2)
        findViewById(R.id.button).setOnClickListener { startActivity(Intent(this@Main2Activity, MainActivity::class.java)) }
    }

}
